#!/bin/bash

#Compiling libraries: GMP, pbc, libcelia and libkpabe

CUR_DIR=`pwd`
#GMP
GMP_NAME=gmp-5.1.0
tar -jxvf $GMP_NAME.tar.tar.bz2
cd $GMP_NAME
./configure
make
sudo make install

cd $CUR_DIR
#PBC
PBC_NAME=pbc-0.5.12
tar -zxvf $PBC_NAME.tar.gz
cd $PBC_NAME
./configure
make
sudo make install

cd $CUR_DIR
#libcelia
CELIA_NAME=libcelia
tar -zxvf $CELIA_NAME.tar.gz
cd $CELIA_NAME
./configure
make
sudo make install

cd $CUR_DIR
#libkpabe
KPABE_NAME=libkpabe
tar -zxvf $KPABE_NAME.tar.gz
cd $KPABE_NAME
./configure
make 
sudo make install

